package com.demo.entity;

import com.demo.intercept.Intercept;

/**
 * FileName: Persion
 *
 * @author: xunyong
 * Date:     2019/5/14 14:39
 * Description: Intercept测试entity类
 */

public class Persion extends BaseDto{

    /**名称*/
    private String name;
    /**年龄*/
    private int age;
    /**电话号码*/
    private String mobile;
    /**性别*/
    private String sex;

    public Persion(String name, int age, String mobile, String sex) {
        this.name = name;
        this.age = age;
        this.mobile = mobile;
        this.sex = sex;
    }

    public Persion() {
    }

    public Persion(String name,int age){
        this.name = name;
        this.age = age;
    }

    public String getName(){
        return name;
    }

    @Intercept(required = false)
    public int getAge() {
        return age;
    }

    @Intercept
    public String getMobile() {
        return mobile;
    }

    public String getSex() {
        return sex;
    }

}